<?php 
include './functions.php';
$id = intval($_GET['id']);
$data = include './data.php';
$oldData = $data[$id];
if(IS_POST){
	$data[$id] = $_POST;

file_put_contents('./data.php',"<?php return ".var_export($data,true)."?>");
success('修改成功', 'index.html');
}
include './edit.html';
 ?>